#pragma once
#include "../core/Node3D.h"
POCELAIN_NAMESPACE_BEGIN
class Light : public Node3D {
public:
    typedef Light type;
    Light(Real intensity = Real(1.0), Color color = Color(1.0,1.0,1.0));
    virtual ~Light();
    virtual bool isLight() const override {return true;}
    virtual EObjectClass getObjectClass() const override {return EObjectClass::E_LIGHT;}
    Real getIntensity()const{return mIntensity;}
    void setIntensity(Real val){mIntensity=val;}
    Color getColor()const{return mColor;}
    void setColor(Color val){mColor = val;}
protected:
    Real mIntensity = 1.0f;
    Color mColor = Color(1.0,1.0,1.0);
};
POCELAIN_NAMESPACE_END
